package client.pantalles;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JButton;
import javax.swing.JComboBox;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class S2BaixaSolicitud extends JPanel {
	private JTextField textFieldNumSolicitud;
	private JTextField textFieldNumBastidor;
	private JTextField textFieldMatricula;
	private JTextField textFieldMarca;
	private JTextField textFieldModel;
	private JTextField textFieldComentaris;
	private JTextField textFieldNumSolAConsultar;
	private JTextField textFieldNumPolissa;
	private JTextField textFieldDiagnostic;

	/**
	 * Create the panel.
	 */
	public S2BaixaSolicitud() {
		
		JPanel panelInferior = new JPanel();
		
		JPanel panel_Superior = new JPanel();
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(panelInferior, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 430, Short.MAX_VALUE)
						.addComponent(panel_Superior, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 430, Short.MAX_VALUE))
					.addContainerGap())
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addComponent(panel_Superior, GroupLayout.PREFERRED_SIZE, 77, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(panelInferior, GroupLayout.PREFERRED_SIZE, 519, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(42, Short.MAX_VALUE))
		);
		
		JLabel lblConsultaDeSollicitud = new JLabel("Consulta de sol\u00B7licitud");
		
		JLabel lblNSollicitud_1 = new JLabel("N\u00BA Sol\u00B7licitud");
		
		textFieldNumSolAConsultar = new JTextField();
		textFieldNumSolAConsultar.setColumns(10);
		
		JButton btnConsulta = new JButton("Consulta");
		GroupLayout gl_panel_Superior = new GroupLayout(panel_Superior);
		gl_panel_Superior.setHorizontalGroup(
			gl_panel_Superior.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_Superior.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_panel_Superior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblConsultaDeSollicitud)
						.addGroup(gl_panel_Superior.createSequentialGroup()
							.addComponent(lblNSollicitud_1)
							.addGap(48)
							.addComponent(textFieldNumSolAConsultar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addGap(68)
							.addComponent(btnConsulta)))
					.addContainerGap(69, Short.MAX_VALUE))
		);
		gl_panel_Superior.setVerticalGroup(
			gl_panel_Superior.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_Superior.createSequentialGroup()
					.addContainerGap()
					.addComponent(lblConsultaDeSollicitud)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panel_Superior.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel_Superior.createParallelGroup(Alignment.BASELINE)
							.addComponent(textFieldNumSolAConsultar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addComponent(btnConsulta))
						.addComponent(lblNSollicitud_1))
					.addContainerGap(63, Short.MAX_VALUE))
		);
		panel_Superior.setLayout(gl_panel_Superior);
		
		JLabel lblNSollicitud = new JLabel("N\u00BA Sol\u00B7licitud");
		
		textFieldNumSolicitud = new JTextField();
		textFieldNumSolicitud.setColumns(10);
		
		JLabel lblNBastidor = new JLabel("N\u00BA Bastidor");
		
		textFieldNumBastidor = new JTextField();
		textFieldNumBastidor.setColumns(10);
		
		JLabel lblMatrcula = new JLabel("Matr\u00EDcula");
		
		textFieldMatricula = new JTextField();
		textFieldMatricula.setColumns(10);
		
		JLabel lblMarca = new JLabel("Marca");
		
		textFieldMarca = new JTextField();
		textFieldMarca.setColumns(10);
		
		JLabel lblModel = new JLabel("Model");
		
		textFieldModel = new JTextField();
		textFieldModel.setColumns(10);
		
		JLabel lblComentaris = new JLabel("Comentaris");
		
		textFieldComentaris = new JTextField();
		textFieldComentaris.setColumns(10);
		
		JButton btnAlta = new JButton("Denegar");
		btnAlta.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		
		JButton btnCancellar = new JButton("Facturar");
		
		JLabel lblEstat = new JLabel("Estat");
		
		JComboBox comboBoxEstat = new JComboBox();
		
		JLabel lblAssaguradora = new JLabel("Assaguradora");
		
		JComboBox comboBox_1Assaguradora = new JComboBox();
		
		JLabel lblNPolissa = new JLabel("N\u00BA Polissa");
		
		textFieldNumPolissa = new JTextField();
		textFieldNumPolissa.setColumns(10);
		
		JLabel lblDiagnstic = new JLabel("Diagn\u00F2stic");
		
		textFieldDiagnostic = new JTextField();
		textFieldDiagnostic.setColumns(10);
		
		JButton btnTancar = new JButton("Tancar");
		GroupLayout gl_panelInferior = new GroupLayout(panelInferior);
		gl_panelInferior.setHorizontalGroup(
			gl_panelInferior.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panelInferior.createSequentialGroup()
					.addGap(55)
					.addComponent(btnAlta, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(btnTancar, GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(btnCancellar, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					.addGap(49))
				.addGroup(gl_panelInferior.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblNSollicitud)
						.addComponent(lblNBastidor)
						.addComponent(lblMatrcula)
						.addComponent(lblMarca)
						.addComponent(lblModel)
						.addComponent(lblComentaris)
						.addComponent(lblAssaguradora)
						.addComponent(lblNPolissa)
						.addComponent(lblDiagnstic))
					.addGap(42)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(textFieldDiagnostic, GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
						.addComponent(textFieldNumPolissa, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(textFieldComentaris, GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
						.addComponent(textFieldNumBastidor, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addGroup(gl_panelInferior.createSequentialGroup()
							.addComponent(textFieldNumSolicitud, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
							.addGap(48)
							.addComponent(lblEstat)
							.addGap(28)
							.addComponent(comboBoxEstat, 0, 88, Short.MAX_VALUE))
						.addGroup(gl_panelInferior.createParallelGroup(Alignment.TRAILING, false)
							.addComponent(comboBox_1Assaguradora, Alignment.LEADING, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
							.addComponent(textFieldModel, Alignment.LEADING)
							.addComponent(textFieldMarca, Alignment.LEADING)
							.addComponent(textFieldMatricula, Alignment.LEADING)))
					.addGap(36))
		);
		gl_panelInferior.setVerticalGroup(
			gl_panelInferior.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panelInferior.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblNSollicitud)
						.addComponent(textFieldNumSolicitud, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblEstat)
						.addComponent(comboBoxEstat, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblNBastidor)
						.addComponent(textFieldNumBastidor, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblMatrcula)
						.addComponent(textFieldMatricula, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblMarca)
						.addComponent(textFieldMarca, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblModel)
						.addComponent(textFieldModel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblAssaguradora)
						.addComponent(comboBox_1Assaguradora, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblNPolissa)
						.addComponent(textFieldNumPolissa, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(21)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(textFieldComentaris, GroupLayout.PREFERRED_SIZE, 88, GroupLayout.PREFERRED_SIZE)
						.addComponent(lblComentaris))
					.addGap(25)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.LEADING)
						.addComponent(lblDiagnstic)
						.addComponent(textFieldDiagnostic, GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))
					.addGap(18)
					.addGroup(gl_panelInferior.createParallelGroup(Alignment.BASELINE)
						.addComponent(btnAlta)
						.addComponent(btnCancellar)
						.addComponent(btnTancar))
					.addGap(43))
		);
		panelInferior.setLayout(gl_panelInferior);
		setLayout(groupLayout);

	}
}
